﻿using UnityEngine;
using System.Collections;

public class AllowRotation : MonoBehaviour {
	public bool allow;

	public void OnTriggerEnter(Collider other) {
		GameObject player = GameObject.FindGameObjectWithTag("Player");
		player.GetComponent<ChangeGravity>().rotationAllowed = allow;
	}
}
